<template>
  <div class="dh">
    <m-header :title="title"></m-header>
    <div class="content">
      <div class="mine-bg">
        <div class="header-img"></div>
      </div>
      <div class="mine-content">
        <div class="account">
          <div class="left">
            <div class="num">￥0.00</div>
            <div class="text">账户余额</div>
          </div>
          <div class="right">
            <div class="pay-btn">充值</div>
            <div class="text">进入会员中心 <img src="../../assets/arrow.png" alt=""> </div>
          </div>
        </div>
        <div class="content-title">
          <span class="bill-left">
            <img src="../../assets/bill.png" alt="">
            <span>我的订单</span>
          </span>
          <span class="bill-right">
            <span>查看全部</span>
            <img src="../../assets/arrow.png" alt="">
          </span>
        </div>
        <div class="func-wrap">
          <div class="func-item">
            <img src="../../assets/car.png" alt="">
            <span>代发货</span>
          </div>
          <div class="func-item">
            <img src="../../assets/car.png" alt="">
            <span>代发货</span>
          </div>
          <div class="func-item">
            <img src="../../assets/car.png" alt="">
            <span>代发货</span>
          </div>
          <div class="func-item">
            <img src="../../assets/car.png" alt="">
            <span>代发货</span>
          </div>
        </div>
        <div class="select-item no-border">
          <span>
            <img class="icon" src="../../assets/bag-linght.png" alt="">
            <span>我的租车</span>
          </span>
          <span>
            <img class="arrow" src="../../assets/arrow.png" alt="">
          </span>
        </div>
        <div class="bg-item"></div>
        <div class="select-item">
          <router-link to="/order_detali" tag="span" >
            <img class="icon" src="../../assets/bag-linght.png" alt="">
            <span>我的机票</span>
          </router-link>
          <span>
            <img class="arrow" src="../../assets/arrow.png" alt="">
          </span>
        </div>
        <div class="select-item">
          <span>
            <img class="icon" src="../../assets/bag-linght.png" alt="">
            <span>我的包船</span>
          </span>
          <span>
            <img class="arrow" src="../../assets/arrow.png" alt="">
          </span>
        </div>
        <div class="select-item">
          <span>
            <img class="icon" src="../../assets/bag-linght.png" alt="">
            <span>我的住宿</span>
          </span>
          <span>
            <img class="arrow" src="../../assets/arrow.png" alt="">
          </span>
        </div>
        <div class="select-item">
          <span>
            <img class="icon" src="../../assets/bag-linght.png" alt="">
            <span>我的餐饮</span>
          </span>
          <span>
            <img class="arrow" src="../../assets/arrow.png" alt="">
          </span>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import MHeader from "components/header/header";
export default {
  data() {
    return {
      title: "个人中心"
    };
  },
  components: {
    MHeader
  }
};
</script>
<style lang="stylus" scoped>
.dh {
  width: 100%;
  height: 100%;
  // overflow: hidden;
}

.content {
  padding-top: 100px;
  padding-bottom: 100px;
}

.mine-bg {
  height: 450px;
  background-image: url('../../assets/background.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding-top: 38px;

  .header-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto;
    background-image: url('../../assets/mine.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
}

.mine-content {
  position: relative;
  z-index: 1;
}

// .mine-content::before {
// content: '';
// position: absolute;
// height: 200px;
// border-radius: 50% 50% 0 0 / 100px 100px 0 0;
// width: calc(100% + 30px);
// top: -150px;
// left: -15px;
// background: #ffffff;
// z-index: 2;
// }
.mine-content .account {
  position: absolute;
  left: 50%;
  margin-left: -42%;
  top: -200px;
  height: 160px;
  width: 84%;
  z-index: 3;
  border-radius: 10px;
  box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.3);
  background: white;
  padding: 30px 20px 20px 20px;
  display: flex;
  justify-content: space-between;

  .left {
    .num {
      color: #d3aa5a;
      font-size: 38px;
    }

    .text {
      font-size: 20px;
      color: #d3aa5a;
    }
  }

  .right {
    .pay-btn {
      border-radius: 60px;
      height: 60px;
      line-height: 60px;
      color: #fff;
      font-size: 25px;
      background-color: #d3aa5a;
      margin-bottom: 10px;
      text-align: center;
    }

    .text {
      font-size: 20px;
      color: #b4b4b4;
    }

    img {
      width: 30px;
      vertical-align: middle;
    }
  }
}

.content-title {
  background: #fff;
  position: relative;
  z-index: 3;
  display: flex;
  padding: 0 32px;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  line-height: 70px;

  .bill-left {
    color: #000000;
    font-size: 31px;

    img {
      width: 35px;
      vertical-align: middle;
    }
  }

  .bill-right {
    color: #C8C8C8;
    font-size: 22px;
    display: flex;
    align-items: center;

    img {
      width: 25px;
      vertical-align: middle;
    }
  }
}

.func-wrap {
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid #969696;

  .func-item {
    color: #333333;
    font-size: 22px;
    text-align: center;
    padding: 30px 0;

    img {
      width: 44px;
      height: 37px;
    }

    span {
      display: block;
    }
  }
}

.select-item {
  display: flex;
  padding: 0 30px;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  line-height: 70px;
  border-bottom: 1px solid #dddddd;

  .icon {
    width: 30px;
    vertical-align: middle;
    margin-right: 10px;
  }

  .arrow {
    width: 30px;
    vertical-align: middle;
  }
}

.select-item.no-border {
  border-bottom: none;
}

.bg-item {
  height: 10px;
  background: #eee;
}
</style>
